<?php
/**
 * 资产包——审批反馈
 * User: zhao shou qiang
 * Date: 2018/1/16 0016
 * Time: 10:28
 */

use yii\helpers\Html;

?>

<style type="text/css">
    .toTop{position: fixed;  bottom: 7%; right: 2%; z-index: 99;}
</style>

<!-- 一键置顶开始 -->
<div class="toTop">
    <img src="/image/common/clickTop.png">
</div>
<!-- 一键置顶结束 -->

<script type="text/javascript">
    // 一键置顶 点击
    $('.toTop').click(function() {
        $("html,body").animate({ scrollTop: 0 }, 100);
    });
</script>

<div class="container content content2 package-application">
    <div class="row">
        <!-- 右侧边栏 -->
        <div class="content-right pull-right  col-md-12">
            <div class="maintenance row mb10 pb100">
                <!-- <img src="image/assetPackage/edit.png" class="edit-img"> -->
                <div class="perfect-logo clearfix">
                    <img src="/image/officeHall/uploadAssetPackage/wsxx.png" class="pull-left">
                    <span class="pull-left">立项审核情况</span>
                </div>
                <div class="table-responsive pull-left table-responsive2" style="text-align:center; margin:0 auto;">

                    <?php if(!empty($data['initiationList']) && is_array($data['initiationList'])){ ?>
                        <table class="table donot-edit">
                            <thead>
                            <tr>
                                <th class="text-left">审批事项</th>
                                <th class="text-left">申请人</th>
                                <th class="text-left">审批人</th>
                                <th class="text-left">审批结果</th>
                                <th class="text-left">审批意见</th>
                                <th class="text-left">审批时间</th>
                            </tr>
                            </thead>
                            <tbody class="maintenance-tbody application-type1" style="text-align:center; margin:0 auto;">

                            <?php
                                foreach ($data['initiationList'] as $value) {
                                    echo '<tr>
                                        <td><input type="text" value="立项审批" disabled></td>
                                        <td><input type="text" value="'.$value['proposer'].'" disabled></td>
                                        <td><input type="text" value="'.$value['user_id'].'" disabled></td>
                                        <td><input type="text" value="'.$value['result'].'" disabled></td>
                                        <td><input type="text" class="application-note" data-title="'.$value['note'].'" value="'.$value['note'].'" disabled ></td>
                                        <td><input type="text" value="'.$value['reviewed_at'].'" disabled></td>
                                    </tr>';
                                }
                            ?>
                            </tbody>
                        </table>
                    <?php } else { ?>
                        <?php echo Html::img('@web/image/defaultPage/nothing.png', ['style'=>'display:inline-block;width:100%']) ?>
                    <?php } ?>

                </div>
            </div>

            <div class="maintenance row mb10 pb100">
                <!-- <img src="image/assetPackage/edit.png" class="edit-img"> -->
                <div class="perfect-logo clearfix">
                    <img src="/image/officeHall/uploadAssetPackage/wsxx.png" class="pull-left">
                    <span class="pull-left">访问审核情况</span>
                </div>
                <div class="table-responsive pull-left table-responsive2" style="text-align:center; margin:0 auto;">

                    <?php if(!empty($data['accessList']) && is_array($data['accessList'])){ ?>
                        <table class="table donot-edit">
                            <thead>
                            <tr>
                                <th class="text-left">审批事项</th>
                                <th class="text-left">申请人</th>
                                <th class="text-left">审批人</th>
                                <th class="text-left">审批结果</th>
                                <th class="text-left">审批意见</th>
                                <th class="text-left">审批时间</th>
                            </tr>
                            </thead>
                            <tbody class="maintenance-tbody application-type5">
                            <?php
                            foreach ($data['accessList'] as $value) {
                                echo '<tr>
                                    <td><input type="text" value="访问审批" disabled></td>
                                    <td><input type="text" value="'.$value['proposer'].'" disabled></td>
                                    <td><input type="text" value="'.$value['user_id'].'" disabled></td>
                                    <td><input type="text" value="'.$value['result'].'" disabled></td>
                                    <td><input type="text" class="application-note" data-title="'.$value['note'].'" value="'.$value['note'].'" disabled></td>
                                    <td><input type="text" value="'.$value['reviewed_at'].'" disabled></td>
                                </tr>';
                            }
                            ?>
                            </tbody>
                        </table>
                    <?php } else { ?>
                        <?php echo Html::img('@web/image/defaultPage/nothing.png', ['style'=>'display:inline-block;width:100%']) ?>
                    <?php } ?>

                </div>
            </div>
        </div>
    </div>
</div>


<!-- 4.模态窗口    开始  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-->
<input type="hidden" class="btn btn-primary btn-lg modal_log_show" data-toggle="modal"
       data-target="#AssetPackageEditing-approval-log"/>
<!-- Modal -->
<div class="modal fade" id="AssetPackageEditing-approval-log" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true"><img src="/image/assetPackage/close.png"></span></button>
                <div class="pull-left modal-nav">
                    <img src="/image/assetPackage/white.png" class="pull-left">
                    <span class="pull-left">审批意见</span>
                </div>
            </div>
            <div class="modal-body-approval">
                <div class="modal-body-approval-div">
                    <pre style="font-size: 14px; font-family: 'Microsoft YaHei', Tahoma, Arial;background: #fff;color: #333;border: none;">
                        数据更新记录操作详情
                    </pre>
                </div>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-primary btns-primary modal_log_btn">确定</button>
            </div>
        </div>
    </div>
</div>
<!-- 模态窗口  结束!!!!!!!!!!!!!!!!!!!!!!!!!!! -->